/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cn.ekuma.epos.businesslogic;

import com.openbravo.bean.Place;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Administrator
 */
public class PlaceUtil {

    /**public static List getPlacesForGroupName(List<Place> m_places,String groupName){
        ArrayList retList=new ArrayList<Place>();
        Place temp=null;
        for(int i=0;i<m_places.size();i++){
            temp=m_places.get(i);
            if(groupName.equalsIgnoreCase(temp.getM_sGroupName()))
                retList.add(temp);
        }
        return retList;
    }

    public static ArrayList getPlacesForState(List<Place> m_places,String m_state,boolean isGrouped){
        ArrayList retList=new ArrayList<Place>();
        Place temp=null;
        for(int i=0;i<m_places.size();i++){
            temp=m_places.get(i);
            if(m_state.equalsIgnoreCase(temp.getM_sPlaceState())&&temp.isGroupPlace()==isGrouped)
                retList.add(temp);
        }
        return retList;
    }
**/
}
